Metadata-Version: 2.1
Name: Mesh Client
Version: 0.10.0
Summary: Client for NHS Digital 's MESH messaging system
Home-page: https://github.com/NHSDigital/mesh-client
Author: James Pickering
Author-email: james.pickering@airelogic.com
License: MIT
Description: MESH Client
        ===========
        
        A Python client for [NHS Digital's MESH API](https://meshapi.docs.apiary.io/).
        
        Installation
        ------------
        
        ```
        pip install mesh_client
        ```
        
        Example use
        -----------
        
        ```
        from mesh_client import MeshClient, NHS_DEP_ENDPOINT
        client = MeshClient(
            NHS_DEP_ENDPOINT,
            'MYMAILBOX',
            'Password123!',
            cert=('/etc/certs/cert.pem', '/etc/certs/key.pem'))  # Mesh uses SSL, so you'll need some certs
        
        client.handshake()  # It will work without this, but Spine will complain
        message_ids = client.list_messages()
        first_message = client.retrieve_message(message_ids[0])
        print('Subject', first_message.subject)
        print('Message', first_message.read())
        first_message.acknowledge()
        
        # Alternatively, iterate
        for message in client.iterate_all_messages():
            with message: # With block will handle acknowledgement
                print('Message', message.read())
        
        client.send_message('RECIPIENT_MAILBOX', b'Hello World!', subject='Important message')
        ```
        
Platform: UNKNOWN
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
Description-Content-Type: text/markdown
